﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserMaster.Master" AutoEventWireup="true" CodeBehind="mycollect.aspx.cs" Inherits="QunYing.Web.market.mycollect" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style>
        #shopcart h2
        {
            background: url("images/cart_bg_05.gif") no-repeat scroll right top #AACDED;
            height: 28px;
            line-height: 28px;
        }
        #shopcart h2 strong
        {
            background: url("images/cart_bg_03.gif") no-repeat scroll left top transparent;
            display: block;
            height: 28px;
            padding: 0 20px;
        }
        .cart_table
        {
            -moz-border-bottom-colors: none;
            -moz-border-image: none;
            -moz-border-left-colors: none;
            -moz-border-right-colors: none;
            -moz-border-top-colors: none;
            border-color: #AACDED;
            border-style: solid;
            border-width: 0 3px;
            overflow: hidden;
            padding: 20px 17px 0;
        }
        .round
        {
            background: url("images/cart_bg_11.gif") repeat-x scroll 0 top transparent;
            height: 10px;
            margin-bottom: 10px;
        }
        .lround
        {
            background: url("images/cart_bg_09.gif") no-repeat scroll left top transparent;
            float: left;
            height: 10px;
            width: 10px;
        }
        .rround
        {
            background: url("images/cart_bg_10.gif") no-repeat scroll right top transparent;
            float: right;
            height: 10px;
            width: 10px;
        }
        th, td
        {
            border: 1px solid #AACDED;
            padding-left: 5px;
        }
        .navgo
        {
            text-align: right;
            margin: 10px 0px 10px 0px;
        }
table{margin: 2px;}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="main">
<div class="index_box">
        <h2><span><strong>我的</strong>收藏</span></h2>
       <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None"
                Width="658px" AutoGenerateColumns="False" DataKeyNames="收藏ID" PagerStyle-CssClass="cssPager"
              AllowPaging="True" onpageindexchanging="GridView1_PageIndexChanging">
                <RowStyle BackColor="White" />
                <Columns>
                    <asp:TemplateField HeaderText="商品名称">
                        <ItemTemplate>
                            <a target="_blank" href="<%# Eval("收藏类别") %>detail.aspx?id=<%# Eval("商品ID") %>"><%# Eval("商品名称")%></a>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="商品品牌" HeaderText="品牌" SortExpression="商品品牌">
                    <HeaderStyle Width="60px" />
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="单价">
                        <HeaderStyle Width="60px" />
                        <ItemStyle Font-Bold="True" ForeColor="#FF3300" HorizontalAlign="Center" />
                        <ItemTemplate>
                            ￥<%# Eval("单价")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="兑换积分" HeaderText="消耗积分" SortExpression="兑换积分">
                    <HeaderStyle Width="60px" />
                    <ItemStyle ForeColor="#FF3300" Font-Bold="True" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="赠送积分" HeaderText="赠送积分" SortExpression="赠送积分">
                    <HeaderStyle Width="60px" />
                    <ItemStyle ForeColor="#FF3300" Font-Bold="True" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="收藏地点" HeaderText="收藏地点" SortExpression="收藏地点">
                    <HeaderStyle Width="60px" />
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="取消收藏">
                        <ItemTemplate>
                           <asp:LinkButton ID="btnDel" runat="server" 
                                CommandArgument=' <%# Container.DataItemIndex %>' 
                                OnClientClick="return window.confirm('你确定要取消收藏吗?');" onclick="btnDel_Click">取消</asp:LinkButton>
                        </ItemTemplate>
                        <HeaderStyle Width="60px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#EBF4FB" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#EBF4FB" HorizontalAlign="Right" CssClass="cssPager"  />
                <EmptyDataTemplate>
                    没有收藏信息
                </EmptyDataTemplate>
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#EBF4FB" />
                <EditRowStyle BackColor="#2461BF" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
      </div></div>
</asp:Content>
